array object

This method will reverse the order of the array.

void reverse()

Parameters:
None.

Return value:
None.

Remarks:
None.

Example:
// Declare an array and reverse the order, displaying the results.

void main()
{
string[] names(6);
names[0]="Damien";
names[1]="Philip";
names[2]="Percival";
names[3]="Byron";
names[4]="Humphrey";
names[5]="Edmund";
names.reverse();
for(int counter=0; counter<names.length(); counter++)
{
alert("Names", "Element "+counter+" contains the name "+names[counter]+".");
}
}